package com.wfx.controller;


import com.wfx.entity.Result;
import com.wfx.entity.WxbGoodsSpec;
import com.wfx.service.IWxbGoodsSpecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhu
 * @since 2021-01-21
 */
@RestController
@RequestMapping("/goods-spec")
@CrossOrigin
public class WxbGoodsSpecController {


    @Autowired
    private IWxbGoodsSpecService iWxbGoodsSpecService;

    @RequestMapping("findSpecAndOptionsByTid")
    public List<Map> findSpecAndOptionsByTid(String tid){



        return iWxbGoodsSpecService.findSpecAndOptionsBytid(tid);
    }


}
